package com.site.service;

import com.night.common.entity.logistical.Appointment;
import com.night.common.entity.logistical.vo.AppointmentVO;
import org.apache.ibatis.annotations.Select;

import java.text.ParseException;
import java.util.List;

/**
 * @ClassName: AppointmentMapper
 * @author: LJC
 * @date: 2022/10/20-17:26
 */
public interface AppointmentService {
    //查询所有预约信息
    List<Appointment> getAllAppointment();

    //新增预约信息
    void addAppointment(AppointmentVO appointmentVO) throws ParseException;

    //修改预约信息
    void updateAppointment(Appointment appointment);

    //根据id查询预约信息
    Appointment getAppointmentById(Appointment appointment);

    //根据用户id查询
    List<Appointment> getAppointmentByUserId(Appointment appointment);

    //判断开始时间和结束时间
    String getSTandET(Appointment appointment);
}
